package com.gcc.service.impl;

import com.gcc.mapper.StudyTotalEngagementMapper;
import com.gcc.pojo.StudyEngagement;
import com.gcc.pojo.StudyTotalDuration;
import com.gcc.mapper.StudyTotalDurationMapper;
import com.gcc.pojo.StudyTotalEngagement;
import com.gcc.service.StudyTotalDurationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gcc
 * @since 2023-02-06
 */
@Service
public class StudyTotalDurationServiceImpl extends ServiceImpl<StudyTotalDurationMapper, StudyTotalDuration> implements StudyTotalDurationService {
    @Resource
    private StudyTotalDurationMapper stdm;
    @Override
    public List<StudyTotalDuration> getTotalDurationByUserId(String id){
        return stdm.getTotalDurationByUserId(id);
    }
}
